﻿using Castle.MicroKernel.Registration;
using Castle.MicroKernel;
using Inovout.Security;

namespace Inovout
{
    public class CoreComponentRegistrar : ComponentRegistrar
    {
        public override void Register()
        {
            Container.Register(Component.For<IUserService>().ImplementedBy<WindowsUserService>()
                              , Component.For<AnonymousUserPrincipal>().ImplementedBy < AnonymousUserPrincipal>()
                              ,Component.For<IAuthenticatedUser>().ImplementedBy<WindowsUser>()
           );
        }

    }
}
